package com.xhh.nphm.system.service;

import com.xhh.nphm.system.domain.ReplyTemplate;
import com.xhh.nphm.system.mapper.ReplyTemplateDao;

import java.util.List;
import java.util.Map;

public interface IReplyTemplateService {
    /**
     * 查询电话回复模板
     * @param deptId
     * @param userId
     * @return
     */
    List<Map> selectTelRnByDeptOrUser(String deptId, String userId);

    /**
     * 查询信件回复模板
     * @param deptId
     * @param userId
     * @return
     */
    List<Map> selectMailRnByDeptOrUser(String deptId, String userId);

    ReplyTemplate selectByPkId(Integer pkId);

    List<Map<String, Object>> selectReplyListJsonByDept(String deptId,ReplyTemplate replyTemplate);

    boolean saveReplyTemplate(ReplyTemplate replyTemplate);

    boolean updateReplyTemplate(ReplyTemplate replyTemplate);

    boolean rTempRemove(String pkId);
}
